
using System;
using System.Collections;

namespace FutureOpen.Core
{
    #region Art

    /// <summary>
    /// Art string for NHibernate mapped table 'art'.
    /// </summary>
    [Serializable]
    public class Art
    {
        #region Member Variables

        protected int _art_id;
        protected string _art_title;
        protected int _art_cat;
        protected string _art_content;
        protected int _art_parent;
        protected int _art_hit;
        protected int _art_col;
        protected short _art_type;
        protected int _art_thread;
        protected DateTime _art_time;
        protected short _art_status;
        protected int _art_org;
        protected short _art_att;
        protected short _art_index;
        protected short _art_del;
        protected short _art_rank;
        protected int _art_reply;
        protected Usr _art_src;

        #endregion

        #region Constructors

        public Art() { }

        public Art(string art_title, int art_cat, string art_content, int art_parent, int art_hit, int art_col, short art_type, int art_thread, DateTime art_time, short art_status, int art_org, short art_att, short art_index, short art_del, Usr art_src, short art_rank, int art_reply)
        {
            this._art_title = art_title;
            this._art_cat = art_cat;
            this._art_content = art_content;
            this._art_parent = art_parent;
            this._art_hit = art_hit;
            this._art_col = art_col;
            this._art_type = art_type;
            this._art_thread = art_thread;
            this._art_time = art_time;
            this._art_status = art_status;
            this._art_org = art_org;
            this._art_att = art_att;
            this._art_index = art_index;
            this._art_del = art_del;
            this._art_src = art_src;
            this._art_rank = art_rank;
            this._art_reply = art_reply;
        }

        #endregion

        #region Public Properties

        public virtual int Art_id
        {
            get { return _art_id; }
            set { _art_id = value; }
        }

        public virtual string Art_title
        {
            get { return _art_title; }
            set
            {
                if (value != null && value.Length > 600)
                    throw new ArgumentOutOfRangeException("Invalid value for Art_title", value, value.ToString());
                _art_title = value;
            }
        }

        public virtual int Art_cat
        {
            get { return _art_cat; }
            set { _art_cat = value; }
        }

        public virtual string Art_content
        {
            get { return _art_content; }
            set
            {
                if (value != null && value.Length > 65535)
                    throw new ArgumentOutOfRangeException("Invalid value for Art_content", value, value.ToString());
                _art_content = value;
            }
        }

        public virtual int Art_parent
        {
            get { return _art_parent; }
            set { _art_parent = value; }
        }

        public virtual int Art_hit
        {
            get { return _art_hit; }
            set { _art_hit = value; }
        }

        public virtual int Art_col
        {
            get { return _art_col; }
            set { _art_col = value; }
        }

        public virtual short Art_type
        {
            get { return _art_type; }
            set { _art_type = value; }
        }

        public virtual int Art_thread
        {
            get { return _art_thread; }
            set { _art_thread = value; }
        }

        public virtual DateTime Art_time
        {
            get { return _art_time; }
            set { _art_time = value; }
        }

        public virtual short Art_status
        {
            get { return _art_status; }
            set { _art_status = value; }
        }

        public virtual int Art_org
        {
            get { return _art_org; }
            set { _art_org = value; }
        }

        public virtual short Art_att
        {
            get { return _art_att; }
            set { _art_att = value; }
        }

        public virtual short Art_index
        {
            get { return _art_index; }
            set { _art_index = value; }
        }

        public virtual short Art_del
        {
            get { return _art_del; }
            set { _art_del = value; }
        }

        public virtual short Art_rank
        {
            get { return _art_rank; }
            set { _art_rank = value; }
        }

        public virtual int Art_reply
        {
            get { return _art_reply; }
            set { _art_reply = value; }
        }

        public virtual Usr Art_src
        {
            get { return _art_src; }
            set { _art_src = value; }
        }


        #endregion


    }

    #endregion
}
 